#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-08-24 10:08 上午
# @Author  : yangdy
# @File    : 2020.08.24.459.重复的子字符串
# @Software: PyCharmCE
class Solution:
    def repeatedSubstringPattern(self, s: str) -> bool:
        ls = len(s)
        for i in range(1, ls//2+1):
            if ls % i == 0 and s[:i] * (ls//i) == s:
                return True
        return False
